<script setup>
import $bus from '../../bus'

const handleClick = () => {
  $bus.emit('data', {car: "法拉利"})
}

</script>

<template>
  <div class="son1">
    <button @click="handleClick">给兄弟一辆法拉利</button>
  </div>
</template>

<style scoped>
.son1 {
  width: 400px;
  height: 200px;
  background-color: hotpink;
}
</style>
